import React from "react";
import qs from "qs";

export default function List(props) {
  console.log(props.match);
  const {
    location: { pathname, search, hash, state },
  } = props;
  const { a, b, c } = qs.parse(search.slice(1));
  return (
    <div>
      <h2>List</h2>
      <p>路由路径： {pathname}</p>
      <p>search: {(a, b, c)}</p>
      <p>hash: {hash}</p>
      <p>state元数据: {state?.title}</p>
    </div>
  );
}
